for cock in range(1,20):
    for hen in range(1,33):
        chicken=100 - cock - hen
        if chicken % 3 == 0 and 5 * cock+3*hen+chicken/3==100:
             print(cock,hen,chicken)
